package com.entity;

import java.util.ArrayList;
import java.util.List;



/**
 * ProductCategory entity. @author MyEclipse Persistence Tools
 */

public class ProductCategory  implements java.io.Serializable {


    // Fields    

     /**
	 * 
	 */
	 private static final long serialVersionUID = 1L;
	 private Integer id;
     private String categoryName;
     private Integer categorySort;
     private Boolean showBottom;
     private List<Production> products;
     private int size;

     public final static String SHOW_BOTTOM = "showBottom";
     public final static String CATEGORY_SORT = "categorySort";
     
    // Constructors

    public int getSize() {
		return this.size;
	}
    
    public void setSize(int size){
    	this.size = size;
    }


	/** default constructor */
    public ProductCategory() {
    }

    
    /** full constructor */
    public ProductCategory(String categoryName, Integer categorySort) {
        this.categoryName = categoryName;
        this.categorySort = categorySort;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public String getCategoryName() {
        return this.categoryName;
    }
    
    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getCategorySort() {
        return this.categorySort;
    }
    
    public void setCategorySort(Integer categorySort) {
        this.categorySort = categorySort;
    }

	public List<Production> getProducts() {
		if(products == null){
			products = new ArrayList<Production>();
		}
		return products;
	}

	public void setProducts(List<Production> products) {
		this.products = products;
	}

	public Boolean getShowBottom() {
		return showBottom;
	}

	public void setShowBottom(Boolean showBottom) {
		this.showBottom = showBottom;
	}

}